package com.maoxx.stuchoosemssbv_service.mapper;

import com.maoxx.stuchoosemssbv_service.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @className: StudentMapper
 * @author: Maoxx
 * @date: 2024/11/3 14:53
 * @Version: 1.0
 * @description:
 */

@Mapper
public interface StudentMapper {
    public Student findById(Integer sid);

    List<Student> findAll();

    List<Student> findBySearch(@Param("student") Student student,@Param("fuzzy") Integer fuzzy);

    boolean save(@Param("student") Student student);

    boolean updateById(@Param("student") Student student);

    boolean deleteById(@Param("sid") Integer sid);
}
